package com.jiasongfan.entity;


import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class TbOrder {

  private Integer id;
  private Long oid;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date odate;
  private String warsehouse;
  private String orderer;
  private String location;
  private Integer trackingNumber;
  private BigDecimal cost;
  private BigDecimal discountAmount;
  private String credit;
  private String way;
  private String address;


  //总金额
  private  BigDecimal sum;
  //订单明细
  private List<TbOrderGoods> orderGoodsList;

  //备注
  private  String remark;

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public BigDecimal getSum() {
    return sum;
  }

  public void setSum(BigDecimal sum) {
    this.sum = sum;
  }

  public List<TbOrderGoods> getOrderGoodsList() {
    return orderGoodsList;
  }

  public void setOrderGoodsList(List<TbOrderGoods> orderGoodsList) {
    this.orderGoodsList = orderGoodsList;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Long getOid() {
    return oid;
  }

  public void setOid(Long oid) {
    this.oid = oid;
  }

  public Date getOdate() {
    return odate;
  }

  public void setOdate(Date odate) {
    this.odate = odate;
  }

  public String getWarsehouse() {
    return warsehouse;
  }

  public void setWarsehouse(String warsehouse) {
    this.warsehouse = warsehouse;
  }

  public String getOrderer() {
    return orderer;
  }

  public void setOrderer(String orderer) {
    this.orderer = orderer;
  }

  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }

  public Integer getTrackingNumber() {
    return trackingNumber;
  }

  public void setTrackingNumber(Integer trackingNumber) {
    this.trackingNumber = trackingNumber;
  }

  public BigDecimal getCost() {
    return cost;
  }

  public void setCost(BigDecimal cost) {
    this.cost = cost;
  }

  public BigDecimal getDiscountAmount() {
    return discountAmount;
  }

  public void setDiscountAmount(BigDecimal discountAmount) {
    this.discountAmount = discountAmount;
  }

  public String getCredit() {
    return credit;
  }

  public void setCredit(String credit) {
    this.credit = credit;
  }

  public String getWay() {
    return way;
  }

  public void setWay(String way) {
    this.way = way;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }
}
